#include "mybtn.h"

myBtn::myBtn(QWidget *parent) : QPushButton(parent)
{

}

void myBtn::enterEvent(QEnterEvent *)
{
    this->resize(this->width()+10,this->height()+10);
    this->move(this->x()-5,this->y()-5);
    this->setCursor(Qt::PointingHandCursor);
}

void myBtn::leaveEvent(QEvent *)
{
    this->resize(this->width()-10,this->height()-10);
    this->move(this->x()+5,this->y()+5);

}
